
import request from '@/utils/request3'
export function addConfig(data) {
    return request({
      url: '/supplier/add',
      headers: {
        "Content-Type":"application/json"
      },
      method: 'post',
      data: JSON.stringify(data)
    })
  }

export function updateConfig(data) {
  return request({
    url: '/supplier/update',
    headers: {
      "Content-Type":"application/json"
    },
    method: 'post',
    data: data
  })
}

export function delConfig(data) {
  return request({
    url: '/supplier/delete',
    method: 'post',
    headers: {
      "Content-Type":"application/json"
    },
    data: data,
  })
}

export function statusConfig(data) {
  return request({
    url: '/supplier/updateState',
    method: 'post',
    headers: {
      "Content-Type":"application/json"
    },
    data: data,
  })
}